<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
    <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
    <form th:action="@{/user/login}" th:method="post">
        <h1 th:text="#{login.tip}">Please sign in</h1>
        <span th:text="#{login.username}">username</span>:<input name="username"/>
        <span th:text="#{login.password}">password</span>:<input name="password"/>
        <input th:value="#{login.btn}" type="submit" value="登录"/>
        <a th:href="@{/index.html(l='zh_CN')}">中文</a>
        <a th:href="@{/index.html(l='en_US')}">English</a>
    </form>
</body>
</html>